package com.itcast.service.impl;

import com.itcast.mapper.RoleDao;
import com.itcast.pojo.Perms;
import com.itcast.pojo.Role;
import com.itcast.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * (Role)表服务实现类
 *
 * @author makejava
 * @since 2020-05-31 08:41:28
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleDao roleDao;

    @Override
    public Role queryById(Integer id) {
        return this.roleDao.queryById(id);
    }

    @Override
    public List<Perms> queryPermsById(Integer id) {
        return roleDao.queryPermsById(id);
    }

    @Override
    public void insert123(Map<String, Integer> map) {
        roleDao.insert123(map);
    }

}